package com.myspring;

import java.lang.reflect.Method;

/**
 * 封装通知方法及其所属的类对象
 */
public class MethodWithClass {
    private Class clazz;
    private Method method;

    public MethodWithClass(Class clazz, Method method) {
        this.clazz = clazz;
        this.method = method;
    }

    public Class getClazz() {
        return clazz;
    }

    public void setClazz(Class clazz) {
        this.clazz = clazz;
    }

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }

    @Override
    public String toString() {
        return "MethodWithClass{" +
                "clazz=" + clazz +
                ", method=" + method +
                '}';
    }
}
